Product Entitlement Customer Experience API

(0 reviews)

Make your first API request

Before you begin using the API widely, we recommend you start with a simple API request.

Postman is a popular application that allows you to test APIs. We recommend you use Postman to begin your testing using the Product Entitlement Customer Experience API.

Before you begin

You must do the following before you begin this task:

  • Ensure you are permitted to make calls to the API by following the guidance in the Authentication topic.
  • Import the Postman collection for the API by following the instruction in the Testing topic.

About this task

This example task covers how you can make an API call to get a list of all your entitlements.

This example is also covered in the Use case 1 - Get all entitlements example topic and repeats the instructions covered there.

Procedure

1.Go to your imported Postman collection in your browser.
2.Click the arrow next to the name of your Postman collection in the left-hand menu to access a drop-down list of methods.

resources/arrow%20down-5c150111-d450-4598-a8c5-20147516e283.png

3.Set the Authorization Type to Bearer Token and Token to the JSON Web Token (JWT) obtained from from following the steps in the Authentication topic.

resources/Screen%20Shot%202022-05-13%20at%2015.36.32-e57e18c8-fc09-4f29-8930-4aeab449b2c0.png

4.Set the baseHost variable in your Postman Collection to connect to an API Instance.

resources/Screen%20Shot%202022-05-13%20at%2015.36.46-685b86f3-4377-4317-8640-8c3e48f61de1.png

5.Select the GET /entitlements method.
6.Click the Send button in the top right of the GET /entitlements window.

resources/GET%20entitlements%20callouts-398e8460-3cde-40bb-a2a2-f32c4ab7b963.png

Results

The entitlement response payload contains contextual links to other related resources such as releases.

The following is an example response payload, that contains one free ("characteristics.free": true) entitlement with the right to download ("rightTo": "download"):

{
    "totalNumberOfItems": 1,
    "items": [
        {
            "id": "99",
            "uri": "https://api.arm.com/e-product-entitlement-customer/v1/entitlements/99",
            "customer": {
                "id": "0001006511",
                "name": "Arm Ltd",
                "uri": "https://id.arm.com/customer/0001006511",
                "blocked": false
            },
            "product": {
                "id": "AT511",
                "name": "Cortex-M0 DesignStart Eval",
                "standardDeliveryMethod": "ipDelivery",
                "uri": "https://id.arm.com/product/products/AT511",
                "eula": {
                    "id": "3b34ccb2-4cb8-4499-95a5-5ba220bbe489",
                    "uri": "https://api.arm.com/e-product-entitlement-customer/v1/eula/3b34ccb2-4cb8-4499-95a5-5ba220bbe489"
                }
            },
            "validFrom": "2022-04-27",
            "activationDate": "2022-04-27",
            "validTo": "2026-04-27",
            "status": "active",
            "setupComplete": true,
            "productAvailable": true,
            "characteristics": {
                "free": true,
                "grouped": false,
                "virtual": false,
                "requestAccess": false
            },
            "rightTo": "download",
            "rights": {
                "maintenanceFrom": "2022-04-27",
                "maintenanceTo": "2026-04-28",
                "qualities": [
                    {
                        "quality": "rel"
                    },
                    {
                        "quality": "eac"
                    },
                    {
                        "quality": "lac"
                    }
                ]
            },
            "compliance": {
                "eccnRestricted": false,
                "status": "compliant",
                "allowedCountries": [
                    {
                        "id": "non-sanctioned",
                        "uri": "https://id.arm.com/locations/country-groups/non-sanctioned"
                    }
                ]
            },
            "history": {
                "createdAt": "2022-04-27T10:50:13.13Z",
                "createdBy": "entitlement-admin@arm.com",
                "lastChangedBy": "entitlement-admin@arm.com",
                "lastChangedAt": "2022-04-27T10:50:13.13Z"
            },
            "links": {
                "eula-agreements": "https://api.arm.com/e-product-entitlement-customer/v1/eula/3b34ccb2-4cb8-4499-95a5-5ba220bbe489/agreements",
                "releases": "https://api.arm.com/e-product-entitlement-customer/v1/entitlements/99/releases/",
                "download-history": "https://api.arm.com/e-product-entitlement-customer/v1/entitlements/99/rights/download/history"
            }
        }
    ]
}

Next steps

  • Go to GET /entitlements in the endpoint SPECIFICATION section for a full description of this API call.
  • Go to Use cases for a list of common scenarios you can begin testing against.

Reviews